package com.diandi.signature.enums.platfrom;

/**
 * Created by jiangquan1900 on 2017/8/31.
 */
public enum InterfactType {
    CA认证("CA认证"      ,31),
    CA查询("CA查询"      ,31),
    合同落地("合同落地" ,10),
    合同渲染("合同渲染" ,11),
    合同上传("合同上传", 12),
    合同签章("合同签章", 13),
    合同归档("合同归档", 14),
    合同查询("合同查询", 15),
    修改用户信息("修改用户信息",91),


    ;
    private String type;
    private int value;

    InterfactType(String type, int value) {
        this.type = type;
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public static InterfactType InterfactType(String type){
        for (InterfactType interfactType : InterfactType.values()) {
            if(interfactType.getType().equals(type)){
                return interfactType;
            }
        }
        return null;
    }
}
